/*
 * @Description: 立库接口
 * @Author: lwx
 * @Date: 2022-12-07 17:52:28
 * @LastEditors: lwx
 * @LastEditTime: 2023-04-12 11:29:41
 */
import request from '@/utils/request'

/*  获取立库卡槽状态信息 */
export function getCabinet(is_flag) {
    return request({
        url: '/cabinet',
        method: 'GET',
        params: {
            is_flag
        }
    })
}

/* 产品入槽 */
// export function inStore(data) {
//     return request({
//         url: '/shelves',
//         method: 'POST',
//         data
//     })
// }

/* 产品出槽 */
export function outStore(cabinet_id) {
    return request({
        url: '/shelves',
        method: 'GET',
        params: {
            cabinet_id
        }
    })
}

/*  今日出库数量 */
export function shelvesAmount() {
    return request({
        url: '/shelves/number',
        method: 'GET',
    })
}

/*  立库出库信息 */
export function shelvesList(data) {
    return request({
        url: '/shelves/list',
        method: 'GET',
        params: data
    })
}